<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="viewport" id="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no"/>
<link href="./css/reset.css" rel="stylesheet" type="text/css">
<link href="./css/personal-center.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
</head>
<body>
<div class="near-box">
      <div class="index-bigbox" style="margin-top: 0px;">
          <!--头部开始-->
          <div class="personal-top" style="background: linear-gradient(to top, #f6d365 0%, #fda085 100%)">
          	 <div class="personal-top-box1">
          	 	<div class="personal-top-img1"><img src="<%=request.getSession().getAttribute("photo")%>" alt="" style="margin: 0 atuo;"></div>
          	 	<div class="personal-top-box2">
          	 		<span class="personal-top-text1" style="color: #fff;"><%=request.getSession().getAttribute("nickname")%></span>
          	 	</div>
          	 </div>
          </div>
         <!--  <input value=""> -->
          <!--头部结束--> 
          <!--代付款分类开始-->
          	   <a href="./my-indent-dfk.jsp" class="personal-box5 box3" style="margin-top:2px;">
          	      <span class="personal-box5-img1"><img src="./images/personal-center-img1.png" alt=""></span>
          	      <span>待付款</span>
          	      <span style="float: right;color:#797778;">></span>
          	   </a>
          	   <a href="./my-indent-dsh.jsp" class="personal-box5 box3">
          	      <span class="personal-box5-img1"><img src="./images/personal-center-img3.png" alt=""></span>
          	      <span>待收货</span>
          	      <span style="float: right;color:#797778;">></span>
          	   </a>
          	   <a href="./my-indent-pj.jsp" class="personal-box5 box3">
          	      <span class="personal-box5-img1"><img src="./images/personal-center-img4.png" alt=""></span>
          	      <span>待评价</span>
          	      <span style="float: right;color:#797778;">></span>
          	   </a>
          	   <a href="./my-indent-all.jsp" class="personal-box5 box3">
          	      <span class="personal-box5-img1"><img src="./images/personal-center-img5.png" alt=""></span>
          	      <span>全部订单</span>
          	      <span style="float: right;color:#797778;">></span>
          	   </a>
          	    <a href="javascript: distr()" class="personal-box5 box3">
          	      <span class="personal-box5-img1"><img src="./images/fenxiao.png" alt=""></span>
          	      <span>我的分销</span>
          	      <span style="float: right;color:#797778;">></span>
          	   </a>
          
          <!--代付款分类结束-->
          <!--功能分类开始-->
       <!--    <a href="./discount-coupon.html" class="personal-box5">
          	  <span class="personal-box5-img1"><img src="./images/personal-center-img10.png" alt=""></span>
          	  <span>我的优惠券</span>
          </a> -->
          <a href="./receiving-adress-list.jsp" class="personal-box5">
          	  <span class="personal-box5-img1"><img src="./images/personal-center-img11.png" alt=""></span>
          	  <span>收货地址</span>
          	  <span style="float: right;color:#797778;">></span>
          </a>
          <!-- <a href="tel:18876329297" class="personal-box5">
          	  <span class="personal-box5-img1"><img src="./images/personal-center-img12.png" alt=""></span>
          	  <span>售后服务</span>
          	  <span style="float: right;color:#797778;">></span>
          </a> -->
          <!-- <span class="personal-box5-text2">退出登录</span> -->
      </div>
      <!--bigbox结束-->
  <div class="kaola-bottom">
		<a href="./index.jsp" class="kaola-bottom-box1" style="background-color: red;">
			<span class="kaola-bottom-img1"><img src="./menu/1556015694.png"></span>
			<span class="kaola-bottom-text1 text2" style="color: #f9f8f8;">首页</span>
		</a>
		<a href="./online-msg.jsp" class="kaola-bottom-box1" style="background-color: red;">
			<span class="kaola-bottom-img1"><img src="./menu/eec3b3a1137ca3a7d155638019db8c2.png"></span>
			<span class="kaola-bottom-text1" style="color: #f9f8f8;">留言</span>
		</a>
		<a href="./shoping-cart.jsp" class="kaola-bottom-box1" style="background-color: red;">
			<span class="kaola-bottom-img1"><img src="./menu/2.png" ></span>
			<span class="kaola-bottom-text1" style="color: #f9f8f8;">购物车</span>
		</a>
		<a href="./personal-center.jsp" class="kaola-bottom-box1" style="background-color: ;">
			<span class="kaola-bottom-img1"><img src="./menu/1.png"></span>
			<span class="kaola-bottom-text1" style="color: red;">我的</span>
		</a>
	</div>
</div>
</body>
<script>
	function distr(){
		$.post("IsDistributor.do",function(res){
			if (res.type == 0) {
				window.location.href = "distribute1.jsp?id="+res.data;
			} else {
				window.location.href="distribute.jsp";
			}
		},"json")
	}
</script>
</html>